<!DOCTYPE html>
<html lang="zh"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户系统--发卡管理</title>
    <link rel="icon" href="favicon.ico" type="images/ico">
    <meta name="author" content="dc">
    <link rel="stylesheet" type="text/css" href="/css/materialdesignicons.min.css">
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/css/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/css/style.min.css">
    <link href="/js/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/js/jquery-confirm/jquery-confirm.min.css"/>
    <!--时间选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css">
    <!--固定table列-->
    <link href="/js/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.min.css" rel="stylesheet"/>
    <!--日期选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datepicker/bootstrap-datepicker3.min.css">
    <link rel="stylesheet" href="/css/skin.css"/>
    <link rel="stylesheet" href="/css/input_tags.css" />
    <link rel="stylesheet" type="text/css" href="/css/daterangepicker.css" />

    <!--自定义css-->
    <link rel="stylesheet" href="/css/memberManager/user/memberShipCardManager.css">
    <link rel="stylesheet" href="/css/bootstrap-multiselect.css" type="text/css"/>
    <link rel="stylesheet" href="/css/bootstrap-select.css" type="text/css"/>
    <link rel="stylesheet" href="/css/skin.css"/>
    <!--<link rel="stylesheet" href="/css/contractReviewManager/contractReviewForm.css">-->
</head>
<body>
<div>
    <div class="container-fluid p-t-15">
        <div class="row">
            <div class="col-sm-12">
                <div class="card">
                    <div class="card-header">
                        <h1>发卡管理</h1>
                    </div>
                    <div class="card-body">
                        <div class="row content-action">
                            <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                <div class="member pull-left">
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" id="memberShipCardAll" value="" name="memberCardType" checked onclick="memberCardTypeChange()">
                                        <label class="form-check-label" for="memberShipCardAll">全部</label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" id="electronicCard" value="1" name="memberCardType" onclick="memberCardTypeChange()">
                                        <label class="form-check-label" for="electronicCard">电子卡</label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" id="physicalCard" value="2" name="memberCardType" onclick="memberCardTypeChange()">
                                        <label class="form-check-label" for="physicalCard">实体卡</label>
                                    </div>
                                </div>
                                <div class="memberCardStatus pull-left">
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" id="issuedAll" value="" name="memberCardStatus" checked onclick="memberCardStatusChange()">
                                        <label class="form-check-label" for="notIssued">全部</label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" id="notIssued" value="0" name="memberCardStatus"onclick="memberCardStatusChange()">
                                        <label class="form-check-label" for="notIssued">未发放</label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" id="issued" value="1" name="memberCardStatus" onclick="memberCardStatusChange()">
                                        <label class="form-check-label" for="issued">已发放</label>
                                    </div>
                                </div>
                            </div>
                                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                    <div class="pull-right">
                                        <div class="min-search pull-left">
                                            <input class="form-control" type="text" placeholder="请输入客户名"
                                                   id="customerName" name="customerName" autocomplete="off">
                                            <button class="btn btn-primary" type="button" id="btn-search-simple">
                                                <i class="mdi mdi-magnify"></i><span>搜索</span>
                                            </button>
                                        </div>
                                        <button class="btn btn-default btn-senior" data-toggle="collapse"
                                                data-target="#filterContent" aria-expanded="false"
                                                aria-controls="filterContent">
                                            <i class="mdi mdi-sort-variant"></i>高级筛选
                                        </button>
<!--                                        <button class="btn btn-default">
                                            <i class="mdi mdi-import"></i>导入卡片
                                        </button>-->
                                        <div class="btn-group pull-left">
                                            <button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                                                批量导入 <span class="caret"></span>
                                            </button>
                                            <ul class="dropdown-menu">
                                                <li><a href="#!" onclick="showImportMemberCardModal()">直接导入</a></li>
                                                <li><a href="#!" onclick="downMemberCardTemplate()">下载模板</a></li>
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                            </div>

                    <div class="collapse filter-content" id="filterContent">
                        <div class="row">
                            <div class="form-group col-lg-2 col-md-2 col-sm-4 col-xs-6">
                                <label for="memberCardNumber">卡号</label>
                                <div>
                                    <input class="form-control" type="text" placeholder="请输入卡号" id="memberCardNumber"  name="memberCardNumber" autocomplete="off">
                                </div>
                         </div>
                        <div class="form-group col-lg-2 col-md-2 col-sm-4 col-xs-6">
                            <label for="companySelect">所属部门</label>
                            <div>
                                <select id="companySelect" name="companySelect" class="form-control" data-live-search="true">
                                </select>
                            </div>
                        </div>
                        <div class="form-group col-lg-2 col-md-2 col-sm-4 col-xs-6">
                            <label for="customerContact">客户联系人</label>
                            <div>
                                <input class="form-control" type="text" placeholder="请输入客户联系人" id="customerContact"  name="customerContact" autocomplete="off">
                            </div>
                        </div>
                            <div class="form-group col-lg-4 col-md-4 col-sm-4 col-xs-6">
                                <label class="control-label" for="createTmStart">有效日期</label>
                                <div class="form-content input-group">
                                    <input type="text" id="createTmStart" class="form-control date-input" placeholder="请输入起始日期" autocomplete="off">
                                    <span class="input-group-addon">至</span>
                                    <input type="text" id="createTmEnd" class="form-control date-input" placeholder="请输入截止日期" autocomplete="off">
                                </div>
                            </div>

                            <div class="form-group col-lg-2 col-md-2 col-sm-8 col-xs-6">
                                <label>&nbsp;</label>
                                <div class="text-right">
                                    <button class="btn btn-primary" type="button" id="btn-search">
                                        <i class="mdi mdi-magnify"></i><span>搜索</span>
                                    </button>
                                    <button class="btn btn-default" id="btn-reset" onclick="resetSearch(this)">重置</button>
                                </div>
                            </div>
                        </div>
                    </div>
                        <!--会员卡管理表格-->
                        <table id="membershipCardTable"></table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="modal fade" id="importMemberCardModal" tabindex="-1" role="dialog"
     aria-labelledby="exampleModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-body">
                <input type="file" id="importMemberCardFile" name="importMemberCardFile">
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" onclick="importMemberCardList()">导入
                </button>
                <button type="button" class="btn btn-default" data-dismiss="modal"
                        onclick="cancelImportMemberCardList()">取消
                </button>
            </div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="/js/main.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" src="/js/popper.min.js"></script>
<script type="text/javascript" src="/js/jquery.cookie.min.js"></script>
<!--时间选择插件-->
<script src="/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="/js/jquery-confirm/jquery-confirm.min.js"></script>
<script src="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>
<!--日期选择插件-->
<script src="/js/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="/js/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<script type="text/javascript" src="/js/crm/common/dataRangePicker.min.js"></script>
<script src="/js/verSelect.2.0.js"></script>

<!-- 多选框下拉 -->
<script type="text/javascript" src="/js/bootstrap-multiselect.js"></script>
<script type="text/javascript" src="/js/bootstrap-select.js"></script>
<script type="text/javascript" src="/js/bootstrap.lyear.dropdowntree.min.js"></script>
<!--table固定列-->
<script type="text/javascript" src="/js/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js"></script>
<!-- 拖动 -->
<script src="/js/bootstrap-table/extensions/resizable/bootstrap-table-resizable.min.js"></script>
<script src="/js/crm/common/colResizable-1.6.min.js"></script>

<!--公司、人员级联下拉公共js-->
<script src="/js/crm/common/companyUserSelect.js"></script>

<script src="/js/crm/common/common.js"></script>
<!-- 子页面公用js -->
<script src="/js/crm/common/pageCommon.js"></script>
<script src="/js/crm/memberManager/user/memberShipCardManager.js"></script>
</html>